package com.lqk.netty.listener;

import com.lqk.netty.client.Client;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;

/**
 * @author: wyl
 * @date: 2021/7/13
 * @des:
 */
public class ApplicationListenerReadyEvent implements ApplicationListener<ApplicationReadyEvent> {

    @Override
    public void onApplicationEvent(ApplicationReadyEvent event) {
        System.err.println("----应用服务已经启动成功");
        Client.getInstance().init();
    }
}
